local canshi = fk.CreateSkill({
    name = "sj6__canshi",
    tags = {Skill.Compulsory},
})

Fk:loadTranslationTable{
  ["sj6__canshi"] = "残蚀",
  [":sj6__canshi"] = "<b>锁定技</b>，当你回复所有体力后，你失去所有体力，将手牌摸至体力上限的两倍。",
  
  ["$sj6__canshi1"] = "众人与蝼蚁何异？哈哈哈……",
  ["$sj6__canshi2"] = "不发狂，就灭亡！",
}

canshi:addEffect(fk.HpRecover, {
    can_trigger = function(self, event, target ,player, data)
      return player:hasSkill(canshi.name) and target == player and not player:isWounded()
    end,
    on_use = function(self, event, target, player, data)
      player.room:loseHp(player, player.hp, canshi.name)
      if not player.dead and player:getHandcardNum() < (player.maxHp * 2) then
        player:drawCards((player.maxHp * 2) - player:getHandcardNum(),canshi.name)
      end
    end,
})

return canshi